export interface IState {
  normsList: IGoodsType[],
  spinning: boolean
}

export interface IGoodsType {
  id: number;
  type: string;
}
export interface IProps extends IData {
  visible: boolean
  selectKey: number
  selectList: IGoodsType[]
  getFormData: () => void
  handleCancel: () => void;
}

export interface IData {
  goodsCode: number | string;
  goodsName: string;
  norms: string;
  goodsType: string;
  unit: number | string;
  key?: number
  selectKey?: number
}

export interface IResponse {
  msg: string
  code?: number
  data?: IGoodsType[] | IData[]
}